package wsz.rabbitmq.entity;

import java.io.Serializable;

/**
 * 订单实体模拟
 * @author wsz
 * @date 2022/2/21 17:51
 **/
public class Order implements Serializable {

    /**
     * 主键标识，与消费队列保持一致
     */
    private String uuid;

    /**
     * 付款标识
     * 0未付款
     * 1已付款
     */
    private Integer pay;

    public String getUuid() {
        return uuid;
    }

    public Order setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public Integer getPay() {
        return pay;
    }

    public Order setPay(Integer pay) {
        this.pay = pay;
        return this;
    }

    @Override
    public String toString() {
        return "Order{" +
                "uuid='" + uuid + '\'' +
                ", pay=" + pay +
                '}';
    }
}
